package com.orangeandbronze.demos.mapreduce;

import java.util.Date;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.users.User;

public class FileMetadata {

	private static final String SEPARATOR = "/";
	public static final String KIND = "FileMetadata";

	public static String getKeyName(User user, Date date, BlobKey blobkey) {
		return new StringBuilder(user.getNickname())
			.append(SEPARATOR)
			.append(date.getTime())
			.append(SEPARATOR)
			.append(blobkey.getKeyString()).toString();
	}

}
